package day21;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class TestSerialVersionUID {
	public static void main(String[] args)throws Exception {
		FileInputStream fis = new FileInputStream("object.dat");
		ObjectInputStream ois = new ObjectInputStream(fis);
		Object o = ois.readObject();
		Student s = (Student) o;
		System.out.println(s.getName()+":"+s.getAge());
		ois.close();
	}
}
